classmattes = ['王楠','王曼','王岳岳']

#输出list
print(classmattes)
print(len(classmattes))
print(classmattes[0])
print(classmattes[1])
print(classmattes[2])
print(classmattes[-1])
print(classmattes[-2])
print(classmattes[-3])

#追加
classmattes.append('吴秀兰')
print(classmattes)

#插入
classmattes.insert(0,'王建勋')
print(classmattes)

#删除末尾 pop() 以及某个pop(i)
classmattes.pop()
print(classmattes)

classmattes.pop(0)
print(classmattes)

L = ['Apple',123,True]
print(L)

#多维list

s = ['python','java',['asp','php'],'scheme']
print(s)
print(len(s))

print(len(s[0])) #s[0] 的元素说 python 6个
print(len(s[2])) #s[2] list的元素个数 2个

#空list
L = []
print(len(L))




